#ifndef  __HTTP_H__
#define __HTTP_H__
#include "common.h"

int ihttp_connect(char* pip, int iport);


int ihttp_send(int ifd, char* pres, httpinfo *phttpinfo);


int isock_read_symbol(int ifd, char*pbuf, char* psymbol);


int ihttp_rcv(int ifd, char**pbuff, int *pbufsize, resinfo* presinfo);


int ihttp_close(int ifd);


int ifile_archive(char* pdir, char* purl, char* pbuffer, int isize);


#endif
